package com.jf.cloud.multishop.service;

import com.jf.cloud.common.database.dto.PageDTO;
import com.jf.cloud.common.database.vo.PageVO;
import com.jf.cloud.multishop.dto.ShopMsgUserDTO;
import com.jf.cloud.multishop.model.ShopMsgUser;
import com.jf.cloud.multishop.vo.ShopMsgUserVO;

import java.util.List;

/**
 * 
 *
 * @author zz
 * @date 2023-03-26 15:42:57
 */
public interface ShopMsgUserService {

    /**
     * 分页获取列表
     * @param pageDTO 分页参数
     * @return 列表分页数据
     */

    PageVO<ShopMsgUser> page(PageDTO pageDTO, ShopMsgUserDTO shopMsgUserDTO);

    /**
     * 根据id获取
     *
     * @param id id
     * @return 
     */
    ShopMsgUser getById(Long id);

    ShopMsgUser getByOpenId(String  openId,Long shopId);
    /**
     * 保存
     * @param shopMsgUser 
     */
    void save(ShopMsgUser shopMsgUser);

    /**
     * 更新
     * @param shopMsgUser 
     */
    void update(ShopMsgUser shopMsgUser);

    /**
     * 根据id删除
     * @param id id
     */
    void deleteById(Long id);

    List<String> listByShopId(Long shopId);
}
